<{include file="_head.html"}>

<{include file="head.html"}>
<script type="text/javascript">
$(function(){
  $("#pwd").keyup(function(){
      editPwd();
  })

   //提交
   $(".j_myzhtj2").click(function(){
      if(error==0){
        $("#myform").submit();
      }else{
        return false;
      }
   }) 


}) 

 //验证密码
  function editPwd(){
    var pattern = /^\w{6,16}$/;
    var info="<span style='color:#f00'>请输入6-16位密码</span>";
    var pwd=$("#pwd").val();
    if(pattern.test(pwd)){
        $("#pwd").next('span').html('');
        error=0;
      }else{
        $("#pwd").next('span').html(info);
        error=1;
      }
  }
</script>

<!-- 主体内容-开始 -->
<div class="j_main">

    <{include file="user_left.html"}>
	<div class="j_mainy">
    	<div class="j_mainyt">
        	<a href="my_account.php" class="j_mainyt1">帐号信息</a>
        	<a href="my_account_third.php" class="j_mainyt1">社交账号授权</a>
        	<a href="my_account_pwd.php" class="j_mainyt1 j_mainyt1_hov">修改密码</a>
        </div>

    <form action="" method="post" name="myForm" id="myform">
        <div class="j_mainyn">
            <div class="j_myzhy">
                <div class="j_hwjly">
                    <div class="j_hwjlyn">
                        <span class="j_hwjlynz">输入新密码</span>
                        <div class="j_hwjlyny">
                            <input type="text" class="j_bjzlnxny2" name="pwd" id="pwd" value="<{$user.pwd}>" placeholder="请输入6-16位密码"/>
                            <span></span>
                        </div>
                    </div>
                  
                    <div class="j_hwjlyn">
                        <span class="j_hwjlynz">&nbsp;</span>
                         <input type="submit"  class="j_myzhtj2" name="submit" value="修改"/>
                    </div>
                </div>

            </div>
        </div>
    </form>

    </div>

</div>
<!-- 主体内容-结束 -->

<{include file="footer.html"}>
